package com.sjq.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StarConsumeDemo {
	
	public static void main(String[] args) {
		
		//启动器来出发Spring!!!启动消费者
		ClassPathXmlApplicationContext ctx = null;
		try {
			Thread.sleep(1000);
			ctx = new ClassPathXmlApplicationContext(
					"classpath:/spring/spring-context.xml");
			ctx.start();
		} catch (Exception e) {
			ctx.destroy();
		}
	}
}
